package ar.com.larreta.procesos;

import java.io.ByteArrayOutputStream;

import ar.com.larreta.utilidades.GeneradorClavesUnicas;

public class ArchivoDescargable {
	private String id;
	private String nombre;
	private String contentType;
	private ByteArrayOutputStream outputStream;
	
	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	
	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public ByteArrayOutputStream getOutputStream() {
		return outputStream;
	}

	public void setOutputStream(ByteArrayOutputStream outputStream) {
		this.outputStream = outputStream;
	}

	public ArchivoDescargable(String nombre, String contentType, ByteArrayOutputStream outputStream){
		GeneradorClavesUnicas generador = new GeneradorClavesUnicas();
		this.id = generador.getPk();
		this.nombre = nombre;
		this.contentType = contentType;
		this.outputStream = outputStream;
	}
	
	public String getId() {
		return id;
	}
	
}
